package com.gagakuai.bpm.dao.mapper.camunda;



import com.gagakuai.bpm.domian.entity.camuda.HmilyTryLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HmilyTryLogMapper {
    int deleteByPrimaryKey(String txNo);

    int insert(HmilyTryLog record);

    int insertOrUpdate(HmilyTryLog record);

    int insertOrUpdateSelective(HmilyTryLog record);

    int insertSelective(HmilyTryLog record);

    HmilyTryLog selectByPrimaryKey(String txNo);

    int updateByPrimaryKeySelective(HmilyTryLog record);

    int updateByPrimaryKey(HmilyTryLog record);

    int updateBatch(List<HmilyTryLog> list);

    int batchInsert(@Param("list") List<HmilyTryLog> list);



    /*
     * 保存Try操作事务日志
     */
    int saveTryLog(@Param("txNo") String txNo);

    /*
     * 检查是否存在Try操作日志，用于幂等
     */
    Integer existsTryLog(@Param("txNo") String txNo);
}